<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <p>
            {{myClock | myTime}}
        </p>
    </div>

</body>
<script src="./vue.min.js"></script>
<script>
    Vue.filter("myTime",function(v){
        let oTime = new Date(v)
        console.log(oTime);
        return oTime.getFullYear() + '-' + (oTime.getMonth() + 1) +'月'+ '星期' + oTime.getDay() + ' ' +
               oTime.getHours() + ':' + oTime.getMinutes() + ':' + oTime.getSeconds();

    })
    // 1669777933081
    var vm = new Vue({
        el:"#app",
        data:{
            myClock:1669777933081
        }
    })
</script>
</html>